package cn.panda.edu.service;

import cn.panda.edu.model.Student;
import com.github.pagehelper.PageInfo;

public interface StudentService {

    
    /**
     * 
    * @Title: selectWithExamByPrimaryKey
    * @Description: 根据主键查询学生信息及其考试信息
    * @param studentId
    * @return  
    * Student
     */
    Student selectWithExamByPrimaryKey(Integer studentId, Integer state);
	/**
	 *
	* @Title: deleteByPrimaryKey
	* @Description: 根据主键删除
	* @param studentId
	* @return
	* int
	 */
    int deleteByPrimaryKey(Integer studentId);
    Student selectByNameAndPwd(String nameString, String pwd) ;

    /**
     *
    * @Title: insert
    * @Description: 添加学生信息
    * @param record
    * @return
    * int
     */
    int insert(Student record);

    /**
     *
    * @Title: insertSelective
    * @Description: 有选择的添加学生信息
    * @param record
    * @return
    * int
     */
    int insertSelective(Student record);

    /**
     *
    * @Title: selectByPrimaryKey
    * @Description: 根据主键查询
    * @param studentId
    * @return
    * Student
     */
    Student selectByPrimaryKey(Integer studentId);

    /**
     *
    * @Title: updateByPrimaryKeySelective
    * @Description: 根据主键有选择的更新
    * @param record
    * @return
    * int
     */
    int updateByPrimaryKeySelective(Student record);

    /**
     *
    * @Title: updateByPrimaryKey
    * @Description: 根据主键更新全部信息
    * @param record
    * @return
    * int
     */
    int updateByPrimaryKey(Student record);

	/**
	 *
	* @Title: selectByPageAndSelective
	* @Description: TODO(根据学生编号或学生姓名进行模糊查询并分页)
	* @param student
	* @param pageIndex
	* @param pageSize
	* @return
	* PageInfo<Student>
	 */
	PageInfo<Student> selectByPageAndSelective(Student student, int pageIndex, int pageSize);
}
